<template>
  <web-view :src="webviewSrc" style="width:100vw;height:100vh;" />
</template>

<script>
export default {
  name: 'YulanWebview',
  data() {
    return {
      webviewSrc: ''
    }
  },
  created() {
   
  },
  onLoad(e) {
	  

		 const lastSaveId = e.lastSaveId || ''
		 const idcard_agent_id = e.idcard_agent_id || ''
		 const idcard_owner_id = e.idcard_owner_id || ''

  	this.$nextTick(() => {
  		// let lastSaveId = uni.getStorageSync('lastSaveId');
  		// let jyzid = uni.getStorageSync('idcard_owner_id');
  		// let wtrId = uni.getStorageSync('idcard_agent_id');
  		// console.log(lastSaveId,"lastSaveId")
  		// console.log(jyzid,"jyzid")
  		// console.log(wtrId,"wtrId")
  		// lastSaveId= '123e4567-e89b-12d3-a456-426614174001'
  		// 拼接id参数到url
  		this.webviewSrc = `http://hyuu.oss-cn-shenzhen.aliyuncs.com/Y5201754296702345gtgsb.html?id=${lastSaveId}&jyzid=${idcard_owner_id}&wtrId=${idcard_agent_id}`;
  		console.log(this.webviewSrc,"this.webviewSrc")
  	});
  }
}
</script>

<style scoped>
html, body, #app, .container {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}
</style>
